#ifndef KELABELTOAST_H
#define KELABELTOAST_H

#include "../../../../kegui_global.h"

#include <QLabel>
#include <QObject>
#include <QString>
#include <QWidget>

class KEGUI_EXPORT KeLabelToast : public QLabel
{
    Q_OBJECT
public:
    explicit  KeLabelToast(const QString &text, QWidget *parent);
    ~KeLabelToast();
public:
    void showAt(int msec,const QPoint &point);
    void mousePressEvent(QMouseEvent* event)override;
    // void paintEvent(QPaintEvent *) override;
public Q_SLOTS:
    void timeoutClose();
};

#endif // KELABELTOAST_H
